package com.smdk.dsminio.apiservice;
import com.smdk.dsminio.config.FeignSupportConfig;
import com.smdk.dsminio.utils.AjaxResult;
import com.smdk.dsminio.vo.MultipartFileParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "OSS-STORAGE-SERVICE",configuration = FeignSupportConfig.class)
public interface FileService {
    /**
     * produces 用于指定返回类型为JSON格式
     * consumes 用于指定生产者数据请求类型
     * @param multipartFileParam
     * @return
     */
    @RequestMapping(value = "//$SERVER_ID/api/uploadFileInfo",consumes = {MediaType.MULTIPART_FORM_DATA_VALUE},produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    AjaxResult uploadFileInfo(MultipartFileParam multipartFileParam);
}
